package labox.innovation.loginserver.loginserverpackets;

import java.io.IOException;

import labox.innovation.loginserver.GameServerTable;

/**
 * 授权相应协议，返回给游戏服务器的授权信息
 *
 */
public class AuthResponse extends ServerBasePacket {

	/**
	 * @param serverId
	 */
	public AuthResponse(int serverId,String name) {
		writeByte(0x02);
		writeByte(serverId);
		writeString(name);
	}

	/* (non-Javadoc)
	 * @see labox.innovation.loginserver.serverpackets.ServerBasePacket#getContent()
	 */
	@Override
	public byte[] getContent() throws IOException {
		return getBytes();
	}

}
